<template>
<!-- #ifdef MP-WEIXIN -->
	<view class="tab-bar" :style="{ height: distanceY }" v-if="distanceY ? distanceY.slice(0, 2) > 0 : ''">乐居</view>
<!-- #endif -->
</template>

<script>
	export default {
		data () {
			return {
				distanceY: uni.getStorageSync('distanceY') || 0
			}
		}
	}
</script>

<style lang="scss" scoped>
	.tab-bar {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		display: flex;
		justify-content: center;
		box-sizing: border-box;
		padding-top: 60rpx;
		align-items: center;
		background-color: #354e44;
		color: #fff;
		z-index: 10;
		font-size: 26rpx;
	}
</style>
